package com.weblog.home.client;

import com.weblog.home.client.impl.UserClientImpl;
import com.weblog.home.interceptor.FeignInterceptor;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author MaoLin Wang
 * @date 2019/10/511:48
 */
@FeignClient(value = "weblog-user",fallback = UserClientImpl.class,configuration = FeignInterceptor.class)
public interface UserClient {
    /**
     * 查询总记录数
     * @return
     */
    @GetMapping("user/client/count")
    Result count();
}
